package zheezes.protocol.impl.gbw.afn0d;

import zheezes.protocol.impl.gbw.DataUnit;
import zheezes.protocol.impl.gbw.format.DataForm20;

public abstract class AbstractAfn0DDailyFrozenDataUnit extends DataUnit {
	private DataForm20 date;

	@Override
	public int sizeOfData() {
		return date.sizeof();
	}

	@Override
	public int getData(byte[] buf, int offset) {
		return date.getBytes(buf, offset);
	}

	@Override
	public int setData(byte[] buf, int offset, int max) {
		return date.setBytes(buf, offset);
	}

	public DataForm20 getDate() {
		return date;
	}

	public void setDate(DataForm20 date) {
		this.date = date;
	}
}
